package im.yisme.vo;

import java.io.Serializable;

import im.yisme.model.Lyrics;
import im.yisme.model.LyricsHeader;

public class LyricsVO implements Serializable{

	private long id;
	private long remoteId;
	private String artist;
	private String name;
	private String filePath;
	private boolean evaluated;
	private boolean uploaded;
	private int score;
	private int source;
	private int noteNum;
	private String totalTime;
	
	public LyricsVO(long id, String artist, String name, int source){
		this.id = id;
		this.artist = artist;
		this.name = name;
		this.source = source;
	}
	
	public LyricsVO(long id, String artist, String name, String filePath, int source){
		this(id, artist, name, source);
		this.filePath = filePath;
	}
	
	public LyricsVO(long remoteId, String artist, String name, int score, int source){
		this.remoteId = remoteId;
		this.artist = artist;
		this.name = name;
		this.score = score;
		this.source = source;
	}
	
	public LyricsVO(Lyrics lyrics) {
		super();
		this.id = lyrics.getId();
		this.artist = lyrics.getArtist();
		this.name = lyrics.getName();
		this.filePath = lyrics.getFilePath();
		this.evaluated = lyrics.isEvaluated();
		this.uploaded = lyrics.isUploaded();
		this.source = lyrics.getSource();
		this.score = lyrics.getScore();
		this.noteNum = lyrics.getNoteNum();
		this.setTotalTime(lyrics.getTotalTime());
	}

	public long getId() {
		return id;
	}

	public String getArtist() {
		return artist;
	}

	public String getName() {
		return name;
	}

	public String getFilePath() {
		return filePath;
	}

	public boolean isEvaluated() {
		return evaluated;
	}

	public boolean isUploaded() {
		return uploaded;
	}
	
	public long getRemoteId(){
		return remoteId;
	}
	
	public int getScore(){
		return score;
	}
	
	public int getSource(){
		return source;
	}

	public int getNoteNum() {
		return noteNum;
	}

	public void setNoteNum(int noteNum) {
		this.noteNum = noteNum;
	}

	public String getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public void setName(String name) {
		this.name = name;
	}
	public void setId(Long id){
		this.id = id;
	}
}
